cmake_minimum_required(VERSION 3.9)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -D_EXAMPLE_C_FLAG1 -D_EXAMPLE_C_FLAG2 -Wall")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -std=c++14 -frtti -fexceptions -D__STDC_FORMAT_MACROS -Wall")

include_directories(${CMAKE_SOURCE_DIR})

aux_source_directory(${CMAKE_SOURCE_DIR} MATH_SRC)

add_library(i_math SHARED ${MATH_SRC})
#target_link_libraries(i_math dl)
